package com.example.springbootdemo.proxy.staticproxy.extendproxy;

/**
 * @author ：cici
 * @date ：Created in 2019/10/17 11:40
 */
public class TestMain {
    public static void main(String[] args) {
        DoSomething doSomething = new DoSomething();
        doSomething.logic();

        System.out.println("=====================");

        SaySomething saySomething = new SaySomething();
        saySomething.logic();

        System.out.println("=====================");

        //如果我再在DoSomething和SaySomething再需要加逻辑的话，就会又要多一个类，这就是继承的缺点，会造成类爆炸,而且逻辑不够自由
        SingSomething singSomething = new SingSomething();
        singSomething.logic();
    }
}
